"""    read.py
Read an existant Excel file (Book1.xls) and show it on the screen
"""   
import sys

sys.path.append('poi-3.10.1/poi-3.10.1-20140818.jar')
sys.path.append('poi-3.10.1/poi-ooxml-schemas-3.10.1-20140818.jar')
sys.path.append('poi-3.10.1/poi-scratchpad-3.10.1-20140818.jar')
sys.path.append('poi-3.10.1/poi-excelant-3.10.1-20140818.jar')
sys.path.append('poi-3.10.1/ooxml-lib/dom4j-1.6.1.jar')
sys.path.append('poi-3.10.1/ooxml-lib/stax-api.1.0.1.jar')
sys.path.append('poi-3.10.1/ooxml-lib/xmlbeans-2.6.0.jar')

from java.io import *
from org.apache.poi.ss.usermodel import *


def process_excel():
	excel_file =  "cf.xlsx"
	print excel_file
	try:
        	fi = FileInputStream(excel_file)
    	except FileNotFoundException:
	        print '[ERROR] file not found (1)'
        	return

	WB = WorkbookFactory.create(fi)
	sheet = WB.getSheetAt(0)


if __name__ == '__main__':
	process_excel()
